home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / picture / error.h < prev    next >
Text File  |  1993-09-23  |  712b  |  34 lines

  1. //    Copyright 1993 Ralph Gonzalez
  2.  
  3. /*
  4. *    FILE:        error.h
  5. *    AUTHOR:        R. Gonzalez
  6. *    CREATED:    October 6, 1990
  7. *
  8. *    Defines class for reporting errors.
  9. */
  10.  
  11. # ifndef    error_h
  12. # define    error_h
  13.  
  14. # include    "class.h"
  15. # include    <stdio.h>
  16.  
  17. /******************************************************************
  18. *   error class.  Intended use: define a global Error object
  19. *    which is allocated in main().  There should be only one
  20. *    error object at a time.  Error reports are written to the
  21. *    file "error.fil".
  22. ******************************************************************/
  23. class    Error:public Generic_Class
  24. {
  25. private:
  26.     FILE            *error_file;
  27.  
  28. public:
  29.     Error(void);
  30.     virtual void    report(char*);
  31.     virtual            ~Error(void);
  32. };
  33.  
  34. # endif